/**
 * Created by felix on 2016/10/28.
 */
import React from 'react';
import {Icon} from 'antd';
export default class RemoveBtn extends React.Component {
    remove () {
        if (typeof this.props.remove === 'function') {
            this.props.remove();
        }
    }

    render () {
        return (
            <div
                className={this.props.className || 'removeBtn'}
            >
                <Icon
                    type="delete"
                    onClick={this.remove.bind(this)}
                />
            </div>
        );
    }
}
